//
//  PswInputView.h
//  HengYouCai
//
//  Created by ycgwl on 2017/5/8.
//  Copyright © 2017年 lwj. All rights reserved.
//

#import <UIKit/UIKit.h>
@class PswInputView;
// 密码输入完成
typedef void(^PsdBlock)(NSString *str, PswInputView *pswView);

typedef void(^PayErrorBlock)(NSString *str);

/**
 忘记密码
 */
typedef void(^ForgetPsd)();

@interface PswInputView : UIView
@property (nonatomic, retain)UIView *bgView;
@property (nonatomic, retain) UIButton *deleteBtn; // X号按钮
@property (nonatomic, retain) UILabel *titleLab; //标题
@property (nonatomic, retain) UIView *lineView; // 分割线

@property (nonatomic, retain) UILabel *moneyLab; // 钱

@property (nonatomic, retain) UIView *psdView; // 密码view
@property (nonatomic, retain) UIImageView *psdImgView; //密码小黑点
@property (nonatomic, retain) UIButton *forgetBtn; // 忘记密码
@property (nonatomic, retain) UITextField *psdField; // 密码输入框
@property (nonatomic, retain) UILabel *errorMessageLab; // 错误提示信息

@property (nonatomic, copy)PsdBlock psdBlock;
@property (nonatomic, copy)ForgetPsd forgetPsd;

@property (nonatomic, copy)NSString *money;

/**
 支付失败信息
 */
@property (nonatomic, copy)NSString *errorMessage;


+ (instancetype)initWithFrame:(CGRect)frame money:(NSString *)money psdBlock:(PsdBlock)psdStr forgetPsd:(ForgetPsd)porget;
- (instancetype)initWithFrame:(CGRect)frame block:(PsdBlock)block withMoney:(NSString *)money forgetPsd:(ForgetPsd)porget;
@end
